<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pm="http://primefaces.org/mobile"
	xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
	xmlns:b="http://bootsfaces.net/ui"
	template="/templates/layout_mb.xhtml">

	<ui:define name="pcontent">
		<h:form>
			<b:panel title="合同列表" collapsible="false">
				<b:listLinks>
					<ui:repeat var="bmeContract" 
						value="#{mobileRptInfoMB.bmeContracts}" rowIndexVar="rowNum" >
					<b:navCommandLink value="#{bmeContract.name}"
							action="#{mobileRptInfoMB.queryContProd}">
							<f:setPropertyActionListener value="#{bmeContract}"
								target="#{mobileRptInfoMB.selectedContract}" />
					</b:navCommandLink>
							<b:navLink style="height:1px;background-color:#EEEEEE;margin:10px 0px 10px 0px;"/>
					</ui:repeat>
				</b:listLinks>
			
		<h:panelGrid columns="2" cellspacing="30" styleClass="btnCenter">
			<p:commandButton id="btnQuery" value="刷新" icon="ui-icon-refresh"							
				action="#{mobileRptInfoMB.queryContracts}" update="@form"
				style="font-size:16px;color:white;background-color:#3366AA;">
			</p:commandButton>
			<p:button outcome="home_mb.xhtml" value="主页" icon="ui-icon-home"  style="font-size:16px;color:white;background-color:#3366AA;"/>
		</h:panelGrid>
		</b:panel>
		</h:form>
	</ui:define>

</ui:composition>